package com.djhu.aspect.log;

import java.util.Arrays;

/**
 * @author by zw on 2018/5/3.
 */
public class LogProcessEntity {
    private String methodName;
    private long startTime ;
    private long endTime ;
    private Object[] args;
    private Object retVal;
    private Throwable throwable;

    public LogProcessEntity(String methodName, long startTime, long endTime, Object[] args, Object retVal, Throwable throwable) {
        this.methodName = methodName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.args = args;
        this.retVal = retVal;
        this.throwable = throwable;
    }

    @Override
    public String toString() {
        return "LogProcessEntity{" +
                "methodName='" + methodName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", args=" + Arrays.toString(args) +
                ", retVal=" + retVal +
                ", throwable=" + throwable +
                '}';
    }
}